#if !defined(AFX_EDITSCRIPTVIEW_H__0A58D671_428E_43A1_B945_3E0175F4B310__INCLUDED_)
#define AFX_EDITSCRIPTVIEW_H__0A58D671_428E_43A1_B945_3E0175F4B310__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EditScriptView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CEditScriptView view

class EditScriptView : public CEditView
{
protected:
	EditScriptView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(EditScriptView)

// Attributes
public:
	friend	class	ZWaveeditorDoc;
	CEdit			&myedit;
	CEdit			tempedit;
	int SelectedScenario;
	// Operations
public:
	void UpDateData();
	int ReadScriptFromSource();
	void ChangeWindowTitle();
	ZWaveeditorDoc* GetDocument();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CEditScriptView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void OnDraw(CDC* pDC);      // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~EditScriptView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
protected:
	//{{AFX_MSG(CEditScriptView)
	afx_msg void OnKillfocus();
	afx_msg void OnEditscriptRun();
	afx_msg void OnEditscriptSave();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG  // debug version in waveeditorView.cpp
inline ZWaveeditorDoc* EditScriptView::GetDocument()
   { return (ZWaveeditorDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_EDITSCRIPTVIEW_H__0A58D671_428E_43A1_B945_3E0175F4B310__INCLUDED_)
